<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
    <head>
        <title>index</title>
        <meta charset="UTF-8">
       <base th:href="@{/}">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <link rel="stylesheet" href="static/css/bootstrap.min.css"/>
        <link rel="stylesheet" href="static/css/style.css"/>
        <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.0/dist/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">

    </head>
    <body>
        <div class="container text-center">
   <ul class="nav justify-content-end">
  <li class="nav-item">
    <a class="nav-link active" th:href="'users/user_Info/'+${session.sessionuser.Uid}">个人信息</a>
  </li>
  <li class="nav-item">
    <a class="nav-link" th:href="'users/modifypwd_page/'+${session.sessionuser.Uid}">修改密码</a>
  </li>
  <li class="nav-item">
    <a class="nav-link" th:href="'housetype/publichouse_page/'+${session.sessionuser.Uid}">发布出租房子</a>
  </li>
    <li class="nav-item">
    <a class="nav-link" th:href="@{housetype/findrenthouse}">查看已经租出去的房子</a>
  </li>
      <li class="nav-item">
    <a class="nav-link" th:href="'cotenancy/'+${session.sessionuser.Uid}">不满出租？查看合租列表</a>&nbsp;
  </li>
      <li class="nav-item">
    <a class="nav-link" th:href="'collection/'+${session.sessionuser.Uid}">查看我的收藏</a>&nbsp;
  </li>
  <li class="nav-item">
     <a class="nav-link disabled" th:text="${session.sessionuser.Uname}" tabindex="-1" aria-disabled="true"></a>
  </li>
      <li class="nav-item">
    <a class="nav-link"  href="users/logout">退出登录</a>
  </li>
</ul>
            
             
<div class="jumbotron jumbotron-fluid">
  <div class="container">
    <h1 class="display-4">Galaxy</h1>
    <p class="lead">一个普普通通的租赁合租平台</p>
  </div>
</div>  
                      <form action="housetype/findbyHtopic" method="post">
         <div class="input-group mb-3">
  <input type="text" class="form-control" name="Htopickey" placeholder="请输入标题关键字" aria-label="Recipient's username" aria-describedby="button-addon2">
  <div class="input-group-append">
    <button class="btn btn-outline-secondary" type="submit" id="button-addon2">查询</button>
  </div>
</div>
 </form>
            <div>
           
            <h4>通过价格搜索</h4>
            <form action="housetype/findbyHprice">
                最高值<input type="text" name="high" placeholder="请输入最大金额" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                最低值<input type="text" name="low" placeholder="请输入最小金额" />
                <button type="submit" class="btn btn-light">查询</button>
            </form>
            <br><br>
            <p class="lead">所有出租中的房屋</p>
            
            <table class="table table-hover">
            <thead>
                <tr>
                	<th >发布人</th>
                    <th >房屋编号</th>
                    <th >房间标题</th>
                    <th >房屋购买时间</th>
                    <th >房屋地址</th>
                    <th >房屋类型</th>
                    <th >房屋价格</th>
                    <th >房屋状态</th>  
                    <th >操作</th>
                </tr>
            </thead>
            <tbody>
                    <tr   th:each="house:${session.houselist}" th:id="|tr${house.Hid}|">
                    	<td th:text="${house.Uid}"></td>
                        <td th:text="${house.Hid}"></td>
                        <td th:text="${house.Htopic}"></td>
                        <td th:text="${house.Htime}"></td>
                        <td th:text="${house.Had}"></td>
                        <td>[[${house.Htype}]]</td>
                        <td>[[${house.Hprice}]]</td>
                        <td>[[${house.Hatt}]]</td>
                        <td>
                        <a th:href="'housetype/housetypeinfoother/'+${house.Uid}+'/'+${house.Hid}">查看详细内容</a>
                        <a th:href="'report/Reportpage/'+${house.Uid}">举报</a>
                        </td>
                    </tr>
               </tbody>
            </table>
            <br>
            <br>
            
        </div>
	</div>
    </body>
</html>